package org.idea.eaglemq.broker.core;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author: LunBoWang
 * @description: consumeQueue的mmap映射对象的管理器
 * @date: 2025/5/8 下午7:35
 * @version: 1.0
 */
public class ConsumeQueueMMapFileModelManager {

    public Map<String, List<ConsumeQueueMMapFileModel>> consumeQueueMMapFileModel = new HashMap<>();

    public void put(String topic, List<ConsumeQueueMMapFileModel> consumeQueueMMapFileModels) {
        consumeQueueMMapFileModel.put(topic, consumeQueueMMapFileModels);
    }

    public List<ConsumeQueueMMapFileModel> get(String topic) {
        return consumeQueueMMapFileModel.get(topic);
    }
}
